package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LCompetitionAnswer
 * @date 2021.06.01 16:56
 * @describe 竞赛用户答案
 */
@TableName("l_competition_answer")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LCompetitionAnswer对象", description="竞赛用户答案")
public class LCompetitionAnswer implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "competition_answer_id", type = IdType.AUTO)
    private Integer competitionAnswerId;

    @ApiModelProperty(value = "用户竞赛id")
    @TableField("competition_user_id")
    private Integer competitionUserId;

    @ApiModelProperty(value = "试题id")
    @TableField("questions_id")
    private Integer questionsId;

    @ApiModelProperty(value = "用户答案")
    @TableField("user_answer")
    private String userAnswer;

    public Integer getCompetitionAnswerId() {
        return competitionAnswerId;
    }

    public void setCompetitionAnswerId(Integer competitionAnswerId) {
        this.competitionAnswerId = competitionAnswerId;
    }

    public Integer getCompetitionUserId() {
        return competitionUserId;
    }

    public void setCompetitionUserId(Integer competitionUserId) {
        this.competitionUserId = competitionUserId;
    }

    public Integer getQuestionsId() {
        return questionsId;
    }

    public void setQuestionsId(Integer questionsId) {
        this.questionsId = questionsId;
    }

    public String getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }
}
